package com.kun.pojo.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import jakarta.validation.constraints.NotNull;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.math.BigDecimal;

@Getter
@Setter
@ToString
@TableName(value = "trade_pay")
public class TradePay {
    /**
     * 支付编号
     */
    @TableId(type = IdType.ASSIGN_ID)
    private Long payId;

    /**
     * 订单编号
     */
    @NotNull(message = "请求参数不存在")
    private Long orderId;

    /**
     * 支付金额
     */
    private BigDecimal payAmount;

    /**
     * 是否已支付 1否 2是
     */
    private Integer isPaid;

}
